import api from '@/api/index.ts'

// 获取弹幕列表
export function GetData(params: any) {
  // console.log(params)
  return api.get('/api/comment/list', { params })
}

// 添加弹幕
export function PostAddComment(params: any) {
  return api.post(`/api/comment/create`, params)
}

// 获取弹幕详细数据
export function GetDataDetail(id: string) {
  return api.get(`/api/comment/detail/${id}`)
}

// 编辑弹幕
export function PutComment(params: any) {
  return api.put(`/api/comment/modify`, params)
}

// 删除弹幕
export function DeleteData(id: any) {
  return api.delete(`/api/comment/delete/${id}`)
}
